<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/file" prefix="f"%>
<form id="MenDianForm">
	<s:hidden name="model.id"></s:hidden>
	<s:hidden name="model.crateDate"></s:hidden><s:hidden name="model.updateDate"></s:hidden>
	<table width="100%" border="0" >
		<tbody>
			<tr>
				<td width="60%" cellpadding="0"	cellspacing="0" style="border:1px solid rgb(113, 146, 179);height:510px;" >
	<table  id="MenDianTable"   style="height:100%;" cellpadding="0"	cellspacing="0" class='edit_table'>
			<tr>
				<th>
					名称
				</th>
				<td>
					<input type="text" name='model.name' value='${model.name}' maxlength="150"	class="k-textbox"  />
					<input type="hidden" name='oldWxid' value='${model.wxid}' />
					<input type="hidden" id='hideNick' value='${model.nickname}' />
					<input type="hidden" id='hideWxid' value='${model.wxid}' />
				</td>
			</tr>
			<tr>
				<th>
					门店编号
				</th>
				<td>
					<input type="text" name='model.mendianNo' value='${model.mendianNo}' maxlength="20"	class="k-textbox"  />
				</td>
			</tr>
			<tr>
				<th>
					门店类型
				</th>
				<td class="s_checkboxlist" >
				  <s:checkbox name="model.chargeStation"></s:checkbox>充电站
				  <s:checkbox name="model.weixiu"></s:checkbox>维修服务店
				  <s:checkbox name="model.xiaoshou"></s:checkbox>整车销售店
				  <s:checkbox name="model.mobiCharge"></s:checkbox>手机充电站
				</td>
			</tr>
			<tr id="weixinTr">
				<th>
					微信昵称
				</th>
				<td>
				<input type="text" name='model.nickname' value='${model.nickname}' id="model_nickname" maxlength="150" readonly="readonly"	class="k-textbox"  />
					<input type="hidden" name='model.wxid' value='${model.wxid}' id="model_wxid"  />
					<a class="k-button" id="searchBtn" onclick="selectWeixin();">选择</a>
				</td>
			</tr>
			<tr>
				<th>
					地址
				</th>
				<td>
				    <input type="text" name='model.address' value='${model.address}' maxlength="150" 	   id="searAddress"	class="k-textbox"  />
				    <span style="color: red;">请在地图上点击标注位置</span>
				</td>
			</tr>
			<tr>
				<th>
					区域
				</th>
				<td>
				    <input type="text" id="m_province" name='model.province' value='${model.province}'  readonly="readonly" 	class="k-textbox"  /><br>
				    <input type="text" id="m_city" name='model.city' value='${model.city}'  readonly="readonly" 	class="k-textbox"  /><br/>
				    <input type="text" id="m_town" name='model.town' value='${model.town}'  readonly="readonly" 	class="k-textbox"  />
				</td>
			</tr>
			<tr>
				<th>
					经度
				</th>
				<td>
					<input type="text" id="modelLatitude" name='model.latitude' value='${model.latitude}'  maxlength="25" readonly="readonly"	class="k-textbox"  />
				</td>
			</tr>
			<tr>
				<th>
					纬度
				</th>
				<td>
					<input type="text" id="modelLongitude" name='model.longitude' value='${model.longitude}'  maxlength="25" readonly="readonly"	class="k-textbox"  />
				</td>
			</tr>
			<tr>
				<th>
					图片
				</th>
				<td>
					<f:upload fileName="${model.imageUrl}" folder="mendian"	name="model.imageUrl" />
					<br/><span style="color: red;">建议尺寸(像素)宽*高:300*300，大小不超过100KB。</span>
				</td>
			</tr>
			
			
			<tr>
				<th>
					联系人
				</th>
				<td>
					<input type="text" name='model.lxr' value='${model.lxr}' maxlength="50"	class="k-textbox"  />
				</td>
			</tr>
			<tr>
				<th>
					联系电话
				</th>
				<td>
					<input type="text" name='model.lxrTel' value='${model.lxrTel}' maxlength="50"	class="k-textbox"  />
				</td>
			</tr>
			<tr>
				<th>
					服务站
				</th>
				<td>
					<input type="text" name='model.fuwuzhanName' readonly="readonly" id='fuwuzhanName' value='${model.fuwuzhanName}' maxlength="50"/>
					<s:hidden name="model.fuwuzhanId" id="hideFuwuzhanId" />
					<s:if test='isAdmin'>						
						<a class="k-button" id="searchBtn" onclick="zhiding();">管理员指定</a>
					</s:if>
				</td>
			</tr>
			<tr style="height: 100%;line-height: 100%;">
				<th>
					备注
				</th>
				<td>
					<s:textarea name="model.detailInfo" id="model_detailInfo"   rows="3"  cssStyle="width:90%;height:65px;"></s:textarea>
				</td>
			</tr>
	</table>
	</td>
	<td  border="0" cellpadding="0"	cellspacing="0" style="height:520px;">
	   <table width="100%"  class='edit_table'  style="padding: 0px;margin: 0px;border: 1px solid rgb(113, 146, 179); height: 100%;"  cellpadding="0" >
			<tr>
				<td style="border-right:0px;">
	            <input class="k-textbox"  style="width: 286px;" id="searchAddr">  <a class="k-button" id="searchBtn" onclick="initLoadBGoogleMap();">搜索</a>
	            </td>
	        </tr>
	        <tr>
	            <td style="border-right:0px;">
				   <div id="mapParent" style="width: 100%; height:500px; display: block;overflow: hidden;">
				    <div id="map" style="height:520px; display: block;"></div>
				   </div>
				</td>
			</tr>
	   </table>
	</td>
		</tr>
		</tbody>
	</table>
	<div id='parentDiv' style="display: none">
	<div id='kuDialogDiv' style="display: none"></div>
	</div>
	<iframe name="downloadFileIframe" style="display:none"></iframe> 
</form>
